home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global email
- repeat while the stillDown
- if rollover(20) then
- set the member of sprite 20 to member("SendDown")
- else
- set the member of sprite 20 to member("SendUp")
- end if
- updateStage()
- end repeat
- set the member of sprite 20 to member("SendUp")
- if rollover(20) then
- if field("To") = EMPTY then
- alert("No Recipients were specified.")
- else
- if field("From") = EMPTY then
- alert("Your email address has not been specified. Before sending mail, you must specify a return address in the 'from' field.")
- else
- email = new(xtra("DirectEmail"), field("MailServer"), EMPTY, EMPTY)
- sendSprite(8, #psTempFilePath, 2)
- SendEmail(email, field("From"), field("To"), field("CC"), field("Bcc"), field("Subject"), field("Body"), field("Attachment"))
- set the member of sprite 20 to member("SendDisabled")
- set the member of sprite 21 to member("StopUp")
- put "Sending....." into field "Status"
- go(the frame + 1)
- end if
- end if
- updateStage()
- end if
- end
-